package tests;

import junit.framework.Assert;

import org.junit.Test;

import containers.EmployeeContainer;
import entities.Employee;

/**
 * 
 * @author eks691
 * 
 */
public class TestEmployee {

	Employee newEmployee = new Employee(4, "Employee2");

	/**
	 * The rest of the tests test various methods of Employee
	 */
	@Test
	public void testPassword() {
		Assert.assertTrue(newEmployee.getPassword().equals("Employee2"));
	}

	/**
	 * The rest of the tests test various methods of Employee
	 */
	@Test
	public void testID() {
		Assert.assertTrue(newEmployee.getId() == 4);
	}

	/**
	 * The rest of the tests test various methods of Employee
	 */
	@Test
	public void testContainer() {
		EmployeeContainer.dictionary().put(4, newEmployee);
		Employee myEmployee = EmployeeContainer.dictionary().get(4);
		Assert.assertTrue(myEmployee.getId() == newEmployee.getId());
	}
}
